import './assets/css/main.scss';

import { createApp } from 'vue';
import { createPinia } from 'pinia';

import App from './App.vue';
import router from './router';

const app = createApp(App);

app.use(createPinia());
app.use(router);

app.config.errorHandler = (err) => {
  console.log(err, '应用级错误处理器');
};

app.config.globalProperties.attr1 = '全局属性1';
app.config.globalProperties.attr2 = '全局属性2';
app.config.globalProperties.fun1 = function () {
  return '全局方法';
};

app.mount('#app');
